//
//  SQPlanTableViewCell.m
//  energy
//
//  Created by 苏青 on 2021/9/30.
//

#import "SQPlanTableViewCell.h"
#import "SQPlanModel.h"
@implementation SQPlanTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setModel:(BaseModel<BaseCellModelProtocol> *)model{
    SQPlanModelData * dataModel = model;
    
    self.lab_ep_name.text = dataModel.ep_name;
    self.lab_ep_classify_text.text = dataModel.ep_classify_text;
  

    self.lab_ep_remarks.text = dataModel.ep_remarks;
    
    NSArray *a1 = [dataModel.ep_responsible_text componentsSeparatedByString:@"|"];
      NSMutableArray *all = @[].mutableCopy;
      for (NSString *str in a1) {
          NSArray *a2 = [str componentsSeparatedByString:@"、"];
          [all addObject:a2.firstObject];
      }
    self.lab_ep_responsible_text.text = [all componentsJoinedByString:@","];
    
}
- (IBAction)clickLookPlan:(UIButton *)sender {
    self.cellEvent((int)self.indexPath.row);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
